<?php

class GoalsUtils {
	public static function isUserAdmin($id) {
		$worker = Worker::model()->findByPk($id);
		
		if(worker != null) {
			return $worker->type === Strings::ADMINISTRATOR;
		}
		return false;
	}
}

?>